package com.inventive.jmscache.storage.hazelcast;

import com.hazelcast.core.Hazelcast;
import com.inventive.jmscache.storage.JmsCacheStorage;

import javax.annotation.PostConstruct;

/**
 * @author Grant Little grant.little@inventivesoftware.com.au
 */
public class HazelcastStorage implements JmsCacheStorage {

    @PostConstruct
    public void start() {
        Hazelcast.getInstances();
    }

    public void stop() {
        Hazelcast.shutdown();
    }
}
